import java.util.Scanner;

/**
 * Created With IntelliJ IDEA
 * Description:牛客网:首页 > 试题广场 > 最难的问题
 * <a href="https://www.nowcoder.com/questionTerminal/9f6b8f6ec26d44cfb8fc8c664b0edb6b">...</a>
 * User: DELL
 * Data: 2023-04-22
 * Time: 14:17
 */

public class Main {
    public static void main(String[] args) {
        String password = "VWXYZABCDEFGHIJKLMNOPQRSTU";
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String str = scanner.nextLine();
            //密文中只有大写字母和空格
            for (int i = 0; i < str.length(); i++) {
                if (str.charAt(i) != ' ') {
                    System.out.print(password.charAt(str.charAt(i)-'A'));
                } else {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }
}
